package com.seagull.core.test.desing.zerenlian;

/**
 * @author:jian.zhou
 * @DATE: 2017/12/29.
 * @Version:0.0.1
 * @Desc:
 */
public class Cto extends LeaveHandle {

    @Override
    public void leave(int day) {
        if ( day > 1 && day<=3 ){
            System.out.println("我CTO批 3天以内的假 同意 结束=========》》");
        }else {
            System.out.println("我CTO同意 还需要 CEO处理======》》");
            if ( this.getLeaveHandle() != null ){
                this.getLeaveHandle().leave(day);
            }
        }

    }
}
